package jee.boot.common.basic;

import java.util.ArrayList;
import java.util.List;
/**
 * 表对应关系
 */
public class AttrTable {
    private String tableName; //表名
    private String primaryColumn; // 主键列(表的列)
    private String primaryField; // 主键属性(java属性)
    private Object primaryData;// 主键值
    private List<AttrField> columns = new ArrayList<>();// 所有列

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getPrimaryColumn() {
        return primaryColumn;
    }

    public void setPrimaryColumn(String primaryColumn) {
        this.primaryColumn = primaryColumn;
    }

    public String getPrimaryField() {
        return primaryField;
    }

    public void setPrimaryField(String primaryField) {
        this.primaryField = primaryField;
    }

    public Object getPrimaryData() {
        return primaryData;
    }

    public void setPrimaryData(Object primaryData) {
        this.primaryData = primaryData;
    }

    public List<AttrField> getColumns() {
        return columns;
    }

    public void setColumns(List<AttrField> columns) {
        this.columns = columns;
    }

}
